package com.woniu.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class RegistrationVO implements Serializable {
    /**
     * 主键id
     */
    private Integer id;

    /**
     * 门诊科室
     */
    private String roomName;

    /**
     * 门诊医生
     */
    private String roomDoctor;

    /**
     * 挂号状态 0是挂号 1是已缴费 2是退号
     */
    private String rsStatus;

    /**
     * 创建日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date rsCreateDate;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date rsCreateTime;

    /**
     * 用户id
     */
    private String UserName;

    /**
     * 病人信息
     */
    private String PatientName;
    private String gender;
    private Integer age;
    private String idCard;
    /**
     * 就诊时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date rsRegistrationTime;

    /**
     * 预约就诊时间
     */
    @DateTimeFormat(pattern = "HH:mm:ss")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "GMT+8")
    private Date rsPreTime;

    /**
     * 关联time_slot的id，标记用户选择的具体时段
     */
    private Long timeSlotId;

    private static final long serialVersionUID = 1L;
}
